<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
        crossorigin="anonymous">

    <title>JS操作JSON数据的简单实例</title>
</head>

<body>

    <div style="margin-top: 180px;"></div>
    <div class="container">
        <table class="table table-sm">
            <thead>
                <tr class="table-success">
                    <th scope="col">#</th>
                    <th scope="col">名称</th>
                    <th scope="col">网址</th>
                </tr>
            </thead>
            <tbody>
                <tr class="table-primary">
                    <th scope="row">1</th>
                    <td id="name-1">Mark</td>
                    <td id="url-1">Otto</td>
                </tr>
                <tr class="table-info">
                    <th scope="row">2</th>
                    <td id="name-2">Jacob</td>
                    <td id="url-2">Thornton</td>
                </tr>
                <tr class="table-danger">
                    <th scope="row">3</th>
                    <td id="name-3">Jacob</td>
                    <td id="url-3">Thornton</td>
                </tr>
            </tbody>
        </table>

        <p style="text-align: center;"><a href="http://www.runoob.com/js/js-json.html">参考连接</a></p>
    </div>
    <script src="./demo.js"></script>

    <!-- Optional JavaScript -->
    <!-- jQuery first, then Popper.js, then Bootstrap JS -->
    <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
        crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
        crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
        crossorigin="anonymous"></script>
</body>

</html>